﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using DotNetOpenAuth.OpenId.Extensions.AttributeExchange;

namespace EntityFrameworkETL.HelloWorld.Models
{
    public class World
    {
        public World()
        {
            Persons = new HashSet<Person>();
        }
        public World(string name) : this()
        {
            Name = name;
        }

        public int Id { get; set; }
        [Required]
        public string Name { get; set; }

        public ICollection<Person> Persons { get; set; }
    }
}